using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Evaluation3.utils;
 
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
                       
        

    }

    
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
       
        //UserControl uc = (UserControl)LoadControl(@"~\uicontrol\UITabpanel.ascx");
        //uc.ID = "test";
    
     
        //Panel p;
        //Label lbl;
        //TextBox tb;
         
        //    p = new Panel();
        //    p.ID = "hello" ;
        //    lbl = new Label();
        //    lbl.Text = "text-------------------label" +"<br><br>";
        //    p.Controls.Add(lbl);
            
        //    uc.FindControl("Panel").Controls.Add(p);
        //    PlaceHolder pholder = new PlaceHolder();
        //    pholder.ID = "TabArea";
        //    pholder.Controls.Add(uc);
        //    //Controls.AddAt(0, pholder);
        //    //TabArea.Controls.Add(uc);  
        ////Controls.Add(uc);
        //   // base.OnInit(e);
    }
    protected void NewLine_ItemCommand(object source, DataListCommandEventArgs e)
    {
        Response.Write((int)e.Item.ItemIndex);

    }

    public DataView getLessionDataView() {
        DataTable viewTable = new DataTable("tblLessonBySubject");

        return viewTable.DefaultView;
    }
    protected void NewLine_EditCommand(object source, DataListCommandEventArgs e)
    {
        Response.Write("select");
    }
}
